use crate::BlockID;

pub trait BlockDevice {
    fn read_block(&mut self, block_id: BlockID, buf: &mut [u8]);
    fn write_block(&mut self, block_id: BlockID, buf: &[u8]);
}